/* Format.h
Michael Zahniser, 12/12/09

Header file for the Format class.
*/

#ifndef __MZ_FORMAT_H__
#define __MZ_FORMAT_H__

#include <string>



class Format {
public:
	static double Read(const std::string &text, int base);
	static std::string Write(double value, int base);
	
	
private:
	static int Value(char c);
	static char Digit(int n);
	
	static void Round(long long &i, double &f);
};



#endif
